package com.fzy.designPattern;

import com.fzy.designpattern.builder.impl2.PersonalInfo;

public class BuilderTest2 {

    public static void main(String[] args) {
        PersonalInfo personalInfo = new PersonalInfo.Builder("姬如雪")
                .address("幻音坊").age(19).gender("女").build();
        System.out.println("------------个人信息----------------");
        System.out.println("姓名：" + personalInfo.getName());
        System.out.println("住址：" + personalInfo.getAddress());
        System.out.println("年龄：" + personalInfo.getAge());
        System.out.println("性别：" + personalInfo.getGender());


    }
}
